import http from '@/utils/http'

export function getList(params) {
  return http.get('/list', { params })
}

export function getUserInfo(params) {
  return http.get('/userInfo', { params })
}

//登录 login，需要两个参数
export function login(params) {
    return http.post('/admins/login', params)
}

//注册 register，需要两个参数
export function register(params) {
    return http.post('/admins/register', params)
}